<template>
  <a-button type="primary" @click="showDrawer">Open</a-button>
  <a-drawer
    v-model:open="open"
    title="发布管理"
    placement="right"
    @after-open-change="afterOpenChange"
  >
    <p>Some contents...</p>
    <p>Some contents...</p>
    <p>Some contents...</p>
  </a-drawer>
</template>
<script setup>
import { ref } from 'vue'
let open = ref(false)

let afterOpenChange = bool => {
  console.log('open', bool)
}

let showDrawer = () => {
  open.value = true
}
</script>
